package com.talent.dao;

import com.talent.page.Page;
import com.talent.pojo.Major;
import com.talent.vo.MajorDepartVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MajorMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Major record);

    int insertSelective(Major record);

    Major selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Major record);

    int updateByPrimaryKey(Major record);

    List<Major> selectMajorPage(@Param("major") Major major, @Param("page") Page<Major> page);

    List<MajorDepartVo> selectMajorDepartVoPage(@Param("majorDepartVo") MajorDepartVo majorDepartVo, @Param("page") Page<MajorDepartVo> page);

    int validate(@Param("name") String name);

    void deleteAll(String[] ids);

    List<Major> selectAllMajor();

	Integer selectIdByMajorName(@Param("majorName")String majorName);
	
	MajorDepartVo selectMajorDepartById(Integer id);
}